﻿<%@ Page Title="Profile Page" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ThreeDPrinting.Pages.Profile.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div class="centerColumn" style="height:757px">
        <div class="box-head">PROFILE</div>
        <div class="pageContent">
        <fieldset id="profilePage">
            <legend>Your Personal Details</legend>
            <table>
                <tr>
                    <td>Gender:</td>
                    <td>
                        <asp:RadioButtonList ID="radGender" runat="server" Width="196px">
                            <asp:ListItem Value="Male"></asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valGenderRequired" runat="server"
                            ControlToValidate="radGender"
                            ErrorMessage="*You must enter a Gender" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td>First Name:</td>
                    <td>
                        <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valFirstNameRequired" runat="server"
                            ControlToValidate="txtFirstName"
                            ErrorMessage="*You must enter a First Name" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td>Last Name:</td>
                    <td>
                        <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                        <br />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valLastNameRequired" runat="server"
                            ControlToValidate="txtLastName"
                            ErrorMessage="*You must enter a Last Name" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td>Date of Birth:</td>
                    <td>
                        <asp:TextBox ID="txtDoB" ReadOnly="True" runat="server"></asp:TextBox>
                        <asp:Calendar ID="cal" runat="server" OnSelectionChanged="cal_SelectionChanged"></asp:Calendar>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valDoBRequired" runat="server"
                            ControlToValidate="txtDoB"
                            ErrorMessage="*You must enter a Birth Date" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td>E-mail Address:</td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valEmailRequired" runat="server"
                            ControlToValidate="txtEmail"
                            ErrorMessage="*You must enter a E-mail Address" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="valRegEx" runat="server"
                            ControlToValidate="txtEmail"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ErrorMessage="*Ex. (abc@def.com)"
                            Display="dynamic" ForeColor="Red"></asp:RegularExpressionValidator>

                    </td>
                </tr>
            </table>
        </fieldset>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
            </div>
            </div>
</asp:Content>
